package com.scm.biz.service._impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.scm.biz.bean.OperateLog;
import com.scm.biz.dao.OperateLogDao;
import com.scm.biz.query.OperateLogQuery;
import com.scm.biz.service.OperateLogService;
@Service
public class OperateLogServiceImpl implements OperateLogService {
	@Autowired
	OperateLogDao operateLogDao;
	@Override
	public void insert(OperateLog operateLog) {
		operateLogDao.insert(operateLog);
	}
	@Override
	public List<OperateLog> queryPage(OperateLogQuery operateLogQuery) {
		operateLogQuery.setRecourdCount(operateLogDao.selectPageCount());
		return operateLogDao.selectPage(operateLogQuery);
	}

}
